package com.ccjq.jq167.service.impl;

import com.ccjq.jq167.dao.impl.Sql_Dao_Implement;
import com.ccjq.jq167.po.StudentPo;
import com.ccjq.jq167.service.Service_Interface;

import java.util.List;

public class Servicr_Implement implements Service_Interface {
    Sql_Dao_Implement sd = new Sql_Dao_Implement();

    public List<StudentPo> select_students() {
        List<StudentPo> list =sd.getselect_students();
        return list;
    }

    public int insert_students(StudentPo po) {
        int i = sd.getinsert_students(po);
        return i;
    }

    public int delete_students(String id) {
        int i = sd.getdelete_students(id);
        return i;
    }

    public int update_students(String name, String age, String sex, String address, String school, String id) {
        int i = sd.getupdate_students(name,age,sex,address,school,id);
        return i;
    }
}
